import request from '@/request/request.js';

// 获取消息首页未读数与最新消息
export const getMsgUnRead = () => {
  return request({
    url: '/org/app/message/unReadCount',
    method: 'get',
  }, false)
}

// 获取消息列表
export const getMsgData = (data) => {
  return request({
    url: '/org/app/message/list',
    method: 'get',
    data
  })
}

// 获取消息详情
export const getMsgDetail = (id) => {
  return request({
    url: `/org/app/message/${id}`,
    method: 'get',
  })
}